<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Apple - Documentation</title>

    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
    <link type="text/css" rel="stylesheet" href="styles/custom.css">
</head>
<body>

<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
  <div class="navicon"></div>
</label>

<label for="nav-trigger" class="overlay"></label>

<nav id="nav">
    <h3 class="group-title"><a href="index.html">&#x3C; Home &#x3E;</a></h3><input class="search" placeholder="Search" type="text"><div class="list"><h3 class="group-title">Classes</h3><ul><li><a href="Alive.html" class="className">Alive</a><ul class='methods'><li data-type='method'><a href="Alive.html#survive" class="methodName">survive</a></li></ul></li><li><a href="Apple.html" class="className">Apple</a><ul class='methods'></ul></li><li><a href="Energy.html" class="className">Energy</a></li><li><a href="Environment.html" class="className">Environment</a><ul class='methods'><li data-type='method'><a href="Environment.html#start" class="methodName">start</a></li></ul></li><li><a href="Tree.html" class="className">Tree</a><ul class='methods'><li data-type='method'><a href="Tree.html#crop" class="methodName">crop</a></li></ul></li></ul><h3 class="group-title">Events</h3><ul><li><a href="Apple.html#event:beEaten" class="className">beEaten</a></li><li><a href="Environment.html#event:beforeDestroy" class="className">beforeDestroy</a></li></ul><h3><a href="global.html">Global</a></h3></div>
</nav>

<div id="main">
    
        <h1 class="page-title">Apple</h1>
    

    




<section>

<header>
    
        <h2>
        Apple
        </h2>
        
            <div class="class-description"><p>Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.</p></div>
        
    
</header>

<article>
    <div class="container-overview">
    
        

    
    <h2>Constructor</h2>
    

    <h4 class="name" id="Apple"><span class="type-signature"></span>new Apple<span class="signature">()</span><span class="type-signature"></span></h4>

    










    

    

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="Apple.js.html">Apple.js</a>, <a href="Apple.js.html#line6">line 6</a>
    </li></ul></dd>
    

    

    

    
</dl>


    

    

    

    

    

    

    


    
    </div>

    
        <h3 class="subsection-title">Extends</h3>

        


    <ul>
        <li><a href="Alive.html">Alive</a></li>
    </ul>


    

    

    

     

    

    
        <h3 class="subsection-title">Members</h3>

        
            
<h4 class="name" id="color"><span class="type-signature"></span>color<span class="type-signature"> :String</span></h4>




<div class="description">
    <p>Donec imperdiet dignissim</p>
</div>



    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type">String</span>


        </li>
    </ul>





<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="Apple.js.html">Apple.js</a>, <a href="Apple.js.html#line13">line 13</a>
    </li></ul></dd>
    

    

    

    
</dl>






        
            
<h4 class="name" id="energy"><span class="type-signature"></span>energy<span class="type-signature"></span></h4>




<div class="description">
    <p>amount of energy</p>
</div>







    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>the</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Energy.html">Energy</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>




<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a href="Alive.html#energy">Alive#energy</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="Alive.js.html">Alive.js</a>, <a href="Alive.js.html#line11">line 11</a>
    </li></ul></dd>
    

    

    

    
</dl>






        
    

    
        <h3 class="subsection-title">Methods</h3>

        
            

    

    <h4 class="name" id="survive"><span class="type-signature"></span>survive<span class="signature">(environment)</span><span class="type-signature"> &rarr; {<a href="Energy.html">Energy</a>}</span></h4>

    










    
        

<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a href="Alive.html#survive">Alive#survive</a>
    </li></ul></dd>
    
</dl>

 <dl class="inherited-line"></dl>

    

        
    

    

    
        <h3 class="subsection-title">Events</h3>

        
            

    

    <h4 class="name" id="event:beEaten">beEaten</h4>

    



<div class="description">
    <p>Sed vehicula purus dui</p>
</div>





    <h5>Type:</h5>
    <ul>
        <li>
            
<span class="param-type"><a href="Energy.html">Energy</a></span>


        </li>
    </ul>




    

    

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="Apple.js.html">Apple.js</a>, <a href="Apple.js.html#line17">line 17</a>
    </li></ul></dd>
    

    

    

    
</dl>


    

    

    

    

    

    

    


        
    
</article>

</section>




</div>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon, 30 Oct 2017 23:40:52 GMT using
    <a href="https://www.npmjs.com/package/namis">Namis</a> theme.
</footer>

<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.nicescroll/3.6.0/jquery.nicescroll.min.js"></script>
<script src="scripts/namis.search.jquery.js"></script>
<script>prettyPrint();
(function($){
    $('nav').niceScroll({
        cursorwidth: 7,
        hwacceleration: true,
        cursorcolor: "#036564",
        cursorborder: "1px solid #036564"
    });

    $('html').niceScroll({
        cursorwidth: 10,
        hwacceleration: true,
        smoothscroll: true,
        cursorminheight: 32,
        enablemousewheel: true, // nicescroll can manage mouse wheel events
        enablekeyboard: true // nicescroll can manage keyboard events
        ,cursorcolor: "#033649"
    });

    $('#nav').search(['className', 'methodName']);
})(jQuery);
</script>
<script src="scripts/linenumber.js"></script>
</body>
</html>